• Welcome to Vice City Multiplayer.
 

Ramdom Location...

Started by Darkness, March 26, 2009, 04:54:33 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Darkness

Hi , i need set ramdom-location... but how to create this ...
Example :

}
elseif ($3 == 432) {
  vcmp.setlocation %id $rand(-856.195 516.973 16.16,-772.914 471.326 58.243,-1035.027 1331.481 16.795)
}


is this right?
when isn't right please give me th correct command ..

P.D:Sorry my bad english  :'(  :(


thijn

It's not right,
Try something like:

elseif ($3 == 432) {
var %rand = $rand(1,3),%loc
if (%rand == 1) %loc = -856.195 516.973 16.16
elseif (%rand == 2) %loc = -772.914 471.326 58.243
elseif (%rand == 3) %loc = -1035.027 1331.481 16.795
  vcmp.setlocation %id %loc
}


Darkness

#2
ok , now i go to try . Thank you thijn

Edit : Whats happen with VC-MP  i cant see my server and another one... :S

Darkness

mmm work , but i need some... 40 ramdoms spawns how to make this?

thijn

just add every coords at scripts, And for every coord u need to add:

elseif (%a == 1 till 40) %loc = coords

and u need to change the $rand(1,3) to $rand(1,40)


Darkness

aa ok , thank u very much Thijn :)

thijn