Scripts / Make Entities Dissapear When Triggered

Author
Message
BrainyPlayz
8
Years of Service
User Offline
Joined: 9th Oct 2016
Location:
Posted: 10th Oct 2016 14:15
I wanted to know if there is a way so that when a player enters a trigger a sound zone i had placed before could disappear?

Fairly new to game guru But thank you if you help me out
PM
3com
11
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 10th Oct 2016 22:27
Not sure if I've got right your point, anyway "Hide(e)" and "Show(e)" might help, I thought.

If you edit some trigger script you'll notice it start such as:

if g_Entity[e]['plrinzone']==1 then
-- here is a good spot to place "Hide(e)" without quotes.
end

Since I don't not if you want dissapears (hide) the sound trigger (???) or maybe any other entity as well ; in last case you'll need reference the entity number (ID). You can get this number in statbar when mouseover the entity, is usually something like 7{7000}, in this case you should write
Hide(7)
or
Show(7) for display the entity again, if you want to.

so when player run into the trigger, the entity you want, will be hidden.

hth

3com



Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM

Login to post a reply

Server time is: 2025-06-07 20:16:55
Your offset time is: 2025-06-07 20:16:55