Staredit Network > Forums > SC2 Assistance > Topic: Remove Models/Shapes
Remove Models/Shapes
Oct 25 2011, 8:57 am
By: TheKeyToKilling  

Oct 25 2011, 8:57 am TheKeyToKilling Post #1



I have some models and shapes that get placed at specific points at the start of the game. I then create them at different spots later in the game and need to remove the old copy. How would I go about removing previously placed models and shapes?



None.

Oct 25 2011, 9:47 am DevliN Post #2

Woah

Attach the models to units and kill/remove the units.



:devlin: Currently Working On: :devlin:
Myself

Oct 25 2011, 9:58 am TheKeyToKilling Post #3



I have triggers such as this... Actor - Create actor model ShapeGrape (Unnamed) at point Obs 1 End

Is there a way to kill or remove those without attaching them to units? I have 32 of them and really don't feel like attaching 32 models to units and remaking the triggers for it then. Would be quite a bit of work... trying to avoid doing it the long way if possible.



None.

Oct 25 2011, 10:23 am Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

There should be some actions in the "actor" trigger group.




Oct 25 2011, 12:11 pm NicholasBeige Post #5



Create an array variable of type 'Actor' with a size of 31. *Arrays start at 0, so 0 to 31 = 32.
As you create each model at a point add it to this array variable.
Then you create a loop which runs through 0 to 31 and removes each 'Actor' stored in this variable.

If you need it more spelt out than this I suggest you read up on triggering tutorials at the wiki.



None.

Oct 26 2011, 2:00 am TheKeyToKilling Post #6



Quote from name:Cardinal
Create an array variable of type 'Actor' with a size of 31. *Arrays start at 0, so 0 to 31 = 32.
As you create each model at a point add it to this array variable.
Then you create a loop which runs through 0 to 31 and removes each 'Actor' stored in this variable.

If you need it more spelt out than this I suggest you read up on triggering tutorials at the wiki.

Hmmm that sounds like a feasable possibility... I'll hafta test it... I shall get back to you on that one :)

Well that's a possible way to add them to a variable for removal... but I don't think it's possible to remove or kill an actor model with a trigger. I'm just attaching the models to units now like I wanted to avoid :-/.

Post has been edited 1 time(s), last time on Oct 26 2011, 9:44 am by TheKeyToKilling.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: Ojan