Scripts / Help with Decal Trigger

Author
Message
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 28th May 2015 09:54 Edited at: 28th May 2015 09:55
Hi Game Guru's and Script Guru's.

I would like to start a Smoke Decal when the Player steps on a TRIGGER, I could easily do this in the Old FPS Creator very simple(see attachments) but haven't a clue how to do this in lua.

Any help would be appreciated.

Attachments

Login to view attachments
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th May 2015 16:49
1- Place trigger
2- go to its properties panel and set : Ifused = White Smoke (decal name)

3- Go to White Smoke decal properties panel.
4- Set: Spawn at start = No.

Aside note: never had used this decal til now, so I noticed smoke appear and dissapear. If you do not want it, so attached script bellow to its Main propertie



HTH

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

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

PM
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 29th May 2015 23:17
Many thanks 3com, problem solved, works fine.

May I also ask if you could solve another problem:

I would like to place a Decal on a door, say a fire decal, and when I shoot at an area on the door, the fire decal is activated or smoke decal.

Could do it easily in the old fps creator.

Cheers
PM

Login to post a reply

Server time is: 2024-12-22 01:19:39
Your offset time is: 2024-12-22 01:19:39