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 / Help with scripting?!?

Author
Message
Lone Wolf 89
17
Years of Service
User Offline
Joined: 5th Dec 2006
Location: Kansas
Posted: 6th Dec 2006 02:51
Hey Im kinda new to this scripting business but I am getting the hang of it. Anyways I want One NPC enemy stay suspended for 45 seconds and then after that is up I would like for him to follow a waypoint and stop at the end of it.

Heres the code


There is an image that will better demonstrate what Im trying to do. Im confused I think it should work but it just doesnt.

Attachments

Login to view attachments
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 6th Dec 2006 06:18 Edited at: 6th Dec 2006 06:31
I see one problem right off.

You never leave state=0, so the timer is infinitely started over and over and over.
Therefore, the other conditions are never met, because the timer never reaches 4500, so the waypointstart is never called.

Edit
Boy I feel dumb right now...
Here's another problem with state=0

:state=0,timerstart

Should read

:state=0:timerstart

because timerstart is not a condition so the comma should have been a colon to separate the condition from the action. So actually the timer is never started at all, but if you had used the colon you still would have had the problem mentioned above.
As far as the rest goes, somone else will have to help you there, because I do not use waypoints very often.
I never had any luck using waypoints (i get agrivated with them too easily and gave up)

I haven't tried this but you can...


Don't forget to visit Conjured Entertainment
Lone Wolf 89
17
Years of Service
User Offline
Joined: 5th Dec 2006
Location: Kansas
Posted: 6th Dec 2006 15:51
I found out what the problem was last night but thanks anyways heres what i did

Login to post a reply

Server time is: 2024-11-23 05:33:11
Your offset time is: 2024-11-23 05:33:11