Liberty Unleashed
Scripting => Script Help => Topic started by: mimomohamed on October 30, 2011, 03:11:25 pm
-
How can i make things appear for 1 person not for all players like the Checkpoint i need it to appear for 1 person only not for all the server ;D :D
-
sorry but this is one tell me how to make it
CreateCheckpoint( Vector( x, y, z ), 11.0, Colour( 255, 0, 0 ) );
-
function onScriptLoad()
-
THANKS SVENKO
-
A few fixes, first of all onScriptLoad doesn't have a player argument, so I'd suggest using onPlayerJoin (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Events/Player/onPlayerJoin) instead. Secondly, for player owned checkpoints you'll have to use CreateClientCheckpoint (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Checkpoints/CreateClientCheckpoint). The examples in the wiki should get you started.
-
thanks for your help :D