Jump to content
Sign in to follow this  
SHMadPup

Set Waypoint? / Random selection?

Recommended Posts

I used to play an MP mission that had vehicles driving around, rotating between game logics. Would that be a setWayPoint script?

This mission also had you pick up a "package" from one store, and deliver it to another store. But there were multiple stores, and it was selected randomly.

Now how do I get it to select one game logic position randomly, and set a waypoint for the player to that game logic?

Thanks in advance!:D

-SHMadPup

Share this post


Link to post
Share on other sites

You can move waypoint to a random game logic like so:

[player, 1] setWPPos getpos ([logic_1, logic_2, logic_3, logic_4] select ((random 4)-0.5))

Where logic_1...4 are named game logics or objects and random X is their count.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×