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 that makes Enemys Walk Randomly

Author
Message
Jourdan
18
Years of Service
User Offline
Joined: 15th Aug 2006
Location:
Posted: 20th Aug 2006 10:44
Is there a script that makes enemy walk randomly?
Mr noob
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location:
Posted: 20th Aug 2006 14:29
not randomly, but on a random waypoint path
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 20th Aug 2006 16:51 Edited at: 20th Aug 2006 16:53
You can script a random enemy walk movement. However without control of the enemies exact movement and positioning - the results would be just that "Random" and being so the results could be undesirable.

You could use this to advantage in some situations though mostly one needs rather more precise control. Thus we have Paths and a path system having paths with path points - a node system might be more flexible but we dont have it. Without use of a path Random momevemt and postioning of enemies would need complex scripting to control their movement behaviours if you dont want them to abuse that radomness by moving around in a fashion which may not be appropriate to the scenario.

Some current default enemy scripts have random movement behaviours attached. You might study these to understand how the random command works in practice.



"I am and forever will be your friend"
Jourdan
18
Years of Service
User Offline
Joined: 15th Aug 2006
Location:
Posted: 20th Aug 2006 20:18
its too complicated for me. Is there any script in default enemy script? what its name?
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 20th Aug 2006 23:58
Jourdan, just do waypoints they are much easier to work with.

3.2 Ghz PD Processor, 2 GB of (667 Mhz) RAM, 10,000 RPM HD,
ASUS GeForce 7950 GX2 (1 GB of onboard video memory)
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 21st Aug 2006 03:21
Jourdan,

If you want to use a Path look at the manual it shows you clearly how to set them up if you dont know how to do it. Then attach the follow script to the character - it then follows the path.

Hope that helps while you learn something more - there are many here who will help and loads of info available in various threads.

Hope that helps a little and Good luck.



"I am and forever will be your friend"
Jourdan
18
Years of Service
User Offline
Joined: 15th Aug 2006
Location:
Posted: 21st Aug 2006 18:14
k, thx for the help
Jourdan
18
Years of Service
User Offline
Joined: 15th Aug 2006
Location:
Posted: 22nd Aug 2006 15:38
hmm, can someone post the sample/basics of waypoint script?
Soldier X1
19
Years of Service
User Offline
Joined: 10th Oct 2005
Location:
Posted: 23rd Aug 2006 00:45
Hello Jourdan you can find all the scripts that the fpsc came with in C:\Program Files\The Game Creators\FPS Creator\Files\scriptbank\people. The script that makes the entity follow waypoints would be called pace.fpi. If you want to modify it I recommend that you copy and paste it, then change the extention (the .fpi part) to .txt and then you can open it up and modify it. Hope that helps.
Jourdan
18
Years of Service
User Offline
Joined: 15th Aug 2006
Location:
Posted: 23rd Aug 2006 14:46
ow, its already been there from long time ago?
thx soldier x1

Login to post a reply

Server time is: 2024-11-22 20:55:30
Your offset time is: 2024-11-22 20:55:30