Scripts / can you make an entity disapear?

Author
Message
cryptweaver
9
Years of Service
User Offline
Joined: 22nd Dec 2015
Playing:
Posted: 25th Jan 2016 18:37 Edited at: 25th Jan 2016 19:23
Hello, I was just wondering if there was away to make an entity disappear when a trigger zone is activated. I cant
get the disappearlua script to work.
Wishing you all the best.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 25th Jan 2016 19:30
Quote: "Hide(e)

Makes the entity invisible

Show(e)
Makes the entity visible

Spawn(e)

Forces the entity to spawn if not set to spawn at start, except for characters in multiplayer mode"


Source: http://steamcommunity.com/sharedfiles/filedetails/?id=398177770&insideModal=1

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
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 25th Jan 2016 20:34
Hi cryptweaver

disappear.lua does not do anything at the moment, its a blank script that's the fpe's use, I think its a placeholder for a later date.

But here is a way to do what you wanted.
You don't need to edit any scripts with this method.
Instructions:
Place a trigger zone down and put the name of the entity that you want to disappear in the trigger zone's 'If Used' field.
Place this script, plrinzone_hide_me.lua, in the entity or entities that you want disappear. This entity needs to be set to Static - No.
Once the player enters the trigger zone, then the entity/s will disappear. As long as the names match.

Cheers



Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)

Attachments

Login to view attachments
cryptweaver
9
Years of Service
User Offline
Joined: 22nd Dec 2015
Playing:
Posted: 26th Jan 2016 13:54
Thank you guys so much. I really appreciate it.
Wishing you all the best.

Login to post a reply

Server time is: 2024-12-22 12:56:07
Your offset time is: 2024-12-22 12:56:07