[skip all navigation]

Remove Models/Shapes

Creator: TheKeyToKilling
Time: Oct 25 2011, 8:57 am

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

[Avatar]
offlinecontact
Rank: Member
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?

i own THE KEY TO KILLING each and every single one of you!
muhahahahahahahahahahahahahahahahahahahahahahahaha!

When is somebody going to make a Starcraft 2 Picture Mapper? :(
Top

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

[Avatar]
SOMETHING STATUS GO
offlinecontact
Rank: Administrator
Attach the models to units and kill/remove the units.

:devlin: CURRENTLY WORKING ON :devlin:
Invasion: Ares | OMG TEH ZOMBIES!!!
Summoner | Infection
Top

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

[Avatar]
offlinecontact
Rank: Member
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.

i own THE KEY TO KILLING each and every single one of you!
muhahahahahahahahahahahahahahahahahahahahahahahaha!

When is somebody going to make a Starcraft 2 Picture Mapper? :(
Top

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

[Avatar]
Nothing yet! Almost done. Very powerful, very strong.
offlinecontact
Rank: Elite
There should be some actions in the "actor" trigger group.

(user posted image)
Top

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

[Avatar]
offlinecontact
Rank: Regular
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.

Gone.
Top

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

[Avatar]
offlinecontact
Rank: Member
Quote from 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 :-/.
This post was edited 1 time, last edit by TheKeyToKilling: Oct 26 2011, 9:44 am.

i own THE KEY TO KILLING each and every single one of you!
muhahahahahahahahahahahahahahahahahahahahahahahaha!

When is somebody going to make a Starcraft 2 Picture Mapper? :(
Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[12:43 am]
jjf28 -- pr0 is nsf children
[12:19 am]
Dem0n -- da police r cumin 2 taek ur cum
[12:19 am]
Dem0n -- cumraid
[12:19 am]
Pr0nogo -- :wob:
[12:19 am]
Pr0nogo -- communism is the best system because now I can call everyone CUMRADE
[12:14 am]
lil-Inferno -- Yeah communism is the best system because then I don't have to work hard
[12:06 am]
Dem0n -- you said you'd play 3 months ago, so i'm signing you up now
Please log in to shout.