Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Making decals switch on/off periodically...

Author
Message
irdagam3r
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location:
Posted: 8th Jun 2008 19:20
Hey guys,

I was wondering how exactly the script should look for, say, making a rain decal switch on/off periodically to make it look like rain is coming and going (and coming again).

I would like to mention that I have checked out the forums in addition to reading over the Hints N' Tips Guide by Nickydude. In that guide, I found a script that should work for my purpose (shown below).

;Artificial Intelligence Script
; 0-once face player
; 1-once keep angle
; 2-loop face player
; 3-loop keep angle
; 4-once face up
; 5-loop face up
; 6-character-spot-decal (at end of entity characters gun if available)

;Header
desc = Runs Decal Loop


;Triggers

:state=0,activated=1:state=1,rundecal=3
:state=1,activated=0:state=2,rundecal=-1

;End of Script

Something is obviously still wrong with the code because it doesn't produce the proper effect when applied to the AI Main on the rain decal. Help?
irdagam3r
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location:
Posted: 9th Jun 2008 01:37
Another question...

Is it possible to make a sound associated with a decal

In this instance I would like the sound of rain to be looped whilst the player is around the ACTIVE rain decal.

Login to post a reply

Server time is: 2024-10-11 01:26:38
Your offset time is: 2024-10-11 01:26:38