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 Scripts / the character appears and dies

Author
Message
nnn
2
Years of Service
User Offline
Joined: 4th Jan 2017
Location:
Posted: 18th Jul 2017 00:11 Edited at: 18th Jul 2017 00:14
To do so go down the corridor and suddenly heard the scream of the character somewhere on the corner, go there and there is a corpse.
Here is my script:
Artificial Intelligence Script

;Header

desc = script dead up

;Triggers
:state=0:etimerstart,state=1
:state=1,etimergreater=10000:destroy
;End of Script


What's wrong with this script ? Help ! Help! Help!
ncmako
7
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 19th Jul 2017 01:53
nnn
First, looking at your script you want the character (corpse) to disappear after 10 sec's ? Correct ?
Did/do you want corpse to disappear after player see's the corpse, or after what?
Second, are you spawning this corpse when player gets close? Or is it there already?

To help you along with simple testing, make sure your "corpse" is dynamic first (not static)
Then set the corpse Start AI to appear1.fpi and the Destroy AI to disappear1.fpi
Use this for the corpse Main AI...

Place your player marker about 4-5 segments away, then test run.
Have player walk up to corpse, when your within 2 segments timer will trigger.
After 10 sec's corpse will disappear
My games never have bugs. They just develop random features..
Lots and lots of random features...

Login to post a reply

Server time is: 2019-11-19 00:08:08
Your offset time is: 2019-11-19 00:08:08