How to use onSpawn
#2
something like:

[cubescript]
checkinit mapstartalways [
cntostalk = -1
]

checkinit onSpawn [
thecn = $arg1
if (!= $thecn (player1 cn)) [
// someone other than you spawned
if (isclient $cntostalk) [
setfollowplayer $cntostalk
]
]
][/cubescript]

When you wanna stalk someone everytime they spawn just do:

/cntostalk = CLIENT_NUMBER_OF_PLAYER_HERE

P.S. I didn't test it and it can be made way better. I'll work on that but for now I'm lazy and you'll get the idea. :p
Thanks given by:


Messages In This Thread
How to use onSpawn - by jamz - 14 Feb 14, 01:46PM
RE: How to use onSpawn - by Bukz - 14 Feb 14, 02:55PM
RE: How to use onSpawn - by |HP| - 14 Feb 14, 03:07PM
RE: How to use onSpawn - by Bukz - 14 Feb 14, 03:08PM
RE: How to use onSpawn - by jamz - 15 Feb 14, 12:29AM