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 / Bomb Script Help (PB Mod)

Author
Message
ZackS28
16
Years of Service
User Offline
Joined: 3rd Mar 2008
Location: Washington, USA
Posted: 24th Mar 2010 22:20
Ok so I have been trying to get a script to work so that when you walk up to the object and press enter, a timer will start. After ten seconds, the object and another object will explode. This is what I have so far:



This script works, up until the point when you get near the object. Then the hud doesn't show up.


On the other object I have this script:



This should make the object explode (the destroy script is flamable.fpi) but it just dissappears. I am at a wits end about how to make this work any help would be appriciated!

Thanks,

ZackS28

Your signature has been erased by a mod
TerrorNation
14
Years of Service
User Offline
Joined: 18th Dec 2009
Location:
Posted: 24th Mar 2010 23:04
You NEED the desc = in your script:

Quote: ";Artificial Intelligence Script

;Triggers
desc = bomb

:state=0:dimvar=bomb,setvar=bomb 0,state=1
:state=1:setalphafade=0,hudreset,hudx=50,hudy=90,hudsize=20,hudimagefine=gamecore\text\pressentertouse.tga,hudname=plantbomb,hudhide=1,hudmake=display,state=2
:state=2,plrdistwithin=100:hudshow=plantbomb,state=3
:state=2,plrdistfurther=100:hudunshow=plantbomb,state=2
:state=3,scancodekeypressed=28:alttexture=1,state=4
:state=4:setalphafade=100,hudunshow=plantbomb,etimerstart,state=10
:state=10,etimergreater=10000:addvar=bomb 1,runfpidefault=2


;End of Script"


And put the desc = in your second script too.
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 25th Mar 2010 02:59
Did you set the explodable to yes for the entity? It should be toward the bottom when you right-click the entity.

Hope This Helps
ZackS28
16
Years of Service
User Offline
Joined: 3rd Mar 2008
Location: Washington, USA
Posted: 25th Mar 2010 17:49
@TerrorNation

*Facepalm* Holy crap I can't believe I forgot those. Tried it and they work. Thanks!

@zeza

Yeah I had it set to explode. Thanks anyway

Your signature has been erased by a mod

Login to post a reply

Server time is: 2024-11-25 01:38:54
Your offset time is: 2024-11-25 01:38:54