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 Models and Media / waypoint with switch

Author
Message
3rdfloor
17
Years of Service
User Offline
Joined: 15th Jan 2007
Location: the netherlands
Posted: 17th Feb 2008 10:22
is there somebody out there who wants to help me with a script to get a entity to move from the floor to the next upper floor in a straight line using waypoints, i want it to be activated by a switch not a triggerzone.
i am trying to get a spacecraftmodel to move from a hidden hangar up and down in a straight line using the switch.
sometimes i got lucky fiddling with scripts from the forum and the model rises but then the problem is that the model turns 90 degrees at the start and end, and its also halfway in the floor.
thanks in advance.
included is a screenshot from the scifi game i am making that needs this script, more will follow.

Attachments

Login to view attachments
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 17th Feb 2008 19:07 Edited at: 17th Feb 2008 19:09
Hey, very nice level design! That's really good, man!

Let's see...my answer is simple, but very hard to explain, so I'll try...

The best way to do it is to make the entity not spawn at start, so tick that option to "No" in his specs. In his Respawn settings, set them up like so


Then re-name the entity to spawn1. That enables the entity to "activate" when something "activates" it. So, in the switch specs, under AI Automated:


So this enables the switch to spawn the entity spawn1, which will be your way-point-follow-ing guy. Make sure spawn1 is set on a waypoint so that when he spawns, he'll follow the waypoint!


Time to die? All right!

Login to post a reply

Server time is: 2024-11-20 04:36:28
Your offset time is: 2024-11-20 04:36:28