Scripts / Destroy Zone (help)

Author
Message
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 1st Sep 2015 19:44
I try to find "destroyzone" script like the "plrinzone" that spawn objects just the opposite,

the "ActivateIfUsed" will destroy.

Thanks .
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Sep 2015 16:44
ok so i'm no programmer so i'm not sure if there was an easy way to do this or not and it took me a bit of trial and error but this works so it'll do

basically you place the zone and give it this script and then name it the entity numbers of the objects you wish to destroy (these can be found by hovering over them in the editor) and separate each entity number with a comma ,
like this
1,2,5,7,10,53,200,704
etc
(only works up to object number 9999, i dont think you'll be placing more than that)

destroy_zone.lua
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 2nd Sep 2015 19:55
Thanks smallg

its helps alot
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 2nd Sep 2015 20:28
What I am trying to do is a looked door that will open only after the player will enter the trigger zone.

Any better idea for this action?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Sep 2015 18:42
sure you can just replace the Destroy() command with the call to activate the doors

life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 4th Sep 2015 11:31
Thanks smallg

I really appreciate your help

Login to post a reply

Server time is: 2024-12-22 05:27:00
Your offset time is: 2024-12-22 05:27:00