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?
Deleting scenery
- DeeXener[138]
- Posts: 45
- Joined: Fri Feb 09, 2007 8:29 pm
- Location: not knowingly here...
- Contact:
Deleting scenery

DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
- Cryticfarm
- Posts: 3611
- Joined: Sat Dec 09, 2006 7:23 pm
- Location: canada
- Contact:
- Cryticfarm
- Posts: 3611
- Joined: Sat Dec 09, 2006 7:23 pm
- Location: canada
- Contact:
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
(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

- DeeXener[138]
- Posts: 45
- Joined: Fri Feb 09, 2007 8:29 pm
- Location: not knowingly here...
- Contact:
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!
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.

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.


DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.