Deleting scenery

Discuss stuff related to HaloCE (for modding, go to the HEK General forum).
Post Reply
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Deleting scenery

Post by DeeXener[138] »

I'm trying to set up a script with a trigger volume and once the the player passes through the trigger volume then it would delete a scenery object. The only problem is I am unsure on exactly how to make the script delete a piece of scenery.

I can set up the trigger volume but I need to know how to make it so when player passes through the trigger it will delete the scenery.

Any ideas?
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

http://forums.halomods.com/viewtopic.php?t=76042
Looks for something like that in there.
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

you need to name the object in sapien...i used to know how to do this...but i have forgotten.
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

Don't you click and in the properties palette there is a name?
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

The following script should grant you your salvation, I'll assume you know how to place and name trigger volumes, and name objects.

(script startup LOLOLOLOLBLABLABLAWhateverYouWannaCallIt
(sleep_until (volume_test_objects triggerName (players)) 5)
(object_destroy thenameofyourthingy)
)


Note that I have only tried this for vechicles, not sure if it will work for trees etc, since your lightmaps are calculated with the trees etc.

Should you not know how to place trigger volumes, just ask ;)
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

Thanks for everyones input. I found out how to do and it works pretty well. I know how to name trig vol and objs just wanted to know if a script was a able to which it is! :D

My script turned out similair to L0d3x's script except mine was set to 15 instead of 5.

btw, I wasn't deleting trees but a scenery object like a board... over a bottomless pit. :wink:
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
Post Reply