Home   Help Search Login Register  

Author Topic: random spawn points  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

Sol Fire

  • Guest
random spawn points
« on: 02 Dec 2003, 07:27:12 »
Naturally i know how to do the Totally random spawning but what i want to do is make it so its random what spots will be picked for you to spawn at but not as random as you almost never spawn in same place twice

i basically need to know how to make a script randomly pick a place for an object, or player to be put in the beginning of game by randomly selecting a marker or invisible helipad as a place to put the object

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:random spawn points
« Reply #1 on: 02 Dec 2003, 14:11:59 »
I don't know the answer to this, not least because I don't know anything about respawning, but here are a few thoughts.

In the mission editor create a bunch of gamelogics and name them.   Give each one a placement radius.

Now, the respawn script looks something like this

; respawn point
_num = random 8
? 0 < _num =< 1:  _respawnSpot=_position_of_game_logic_1
? 1 < _num =< 2:  _respawnSpot=_position_of_game_logic_2

etc

You can put a marker on the gamelogics if you need to.

Plenty of reviewed ArmA missions for you to play

deaddog

  • Guest
Re:random spawn points
« Reply #2 on: 02 Dec 2003, 16:33:18 »
Are you talking about respawning in multiplayer or just starting a mission in random spots.

If it's the later, then simply place "empty" type markers where you want to be placed and then sync group your player to these markers.  You can do this with any type of unit.

« Last Edit: 04 Dec 2003, 02:17:45 by deaddog »

Sol Fire

  • Guest
Re:random spawn points
« Reply #3 on: 04 Dec 2003, 02:06:47 »
nah, not Respawn i want it for starting players off in the beginning in random, but not too random, of locations

i already know how to do random using the player radias thing but i need a script or somethin going off in beginning of game that picks a random marker or game logic for player to be put at, kinda like how Karrilion did his start points in RTS he used an object or something as a start point marker, and a script would pick them at random

this way where you start is random but also, not so random as almost never starting in same spot twice, another reason for using this is so bolth sides dont get put too close to each other in beginning
« Last Edit: 04 Dec 2003, 02:09:20 by Sol Fire »

deaddog

  • Guest
Re:random spawn points
« Reply #4 on: 04 Dec 2003, 02:09:52 »
Did you actually read my first reply?