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 / Script HELP!

Author
Message
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 27th Sep 2012 21:53
I have an entity that I need to appear as an objective on the radar, then when the player is within 50 the entity is destroyed. Here is what I have, yet it won\'t work correctly.

;Artificial Intelligence Script

;Header

desc = Instant On set as a radar objective

;Triggers

:state=0:setisobjective=1,setobjectivemode=1
:state=0:setalphafade=100,runfpidefault=1,state=1

:state=1:plrdistwithin=100:destroy

;End of Script
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 28th Sep 2012 10:25
change
Quote: ":state=1:plrdistwithin=100:destroy"


into :plrdistwithin=100:destroy

then insert this line into the main characterscript instead of appearscript because the script stops and activates the mainscript with runfpidefault=1, so the state=1-line would not have any effect here.

BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 30th Sep 2012 05:47
Awesome, thank you maho!

Login to post a reply

Server time is: 2024-11-27 13:19:59
Your offset time is: 2024-11-27 13:19:59