OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: FiLL2d on 10 Nov 2005, 16:20:21
-
hi how can i make
drop ["cl_basic", "", "Billboard", 4, 4, [-0, 0, 0.2], [0, 0, 0], 0, 1.275, 1, 0, [0.15],[[0,1,0,1]],[0],0,0,"","",p1]
client side to p1
currently it is just a trigger that activates drop.sqs that [] exec "drop.sqs"
-
keep the trigger as it will run on all clients and then have the trigger run your drop command in a script
At the start of that script place the following command line
?!(local P1):exit
or alternqatively, if you want all clients to run the script, just not the drop command, then use the following
?(local P1): drop ["cl_basic", "", "Billboard", 4, 4, [-0, 0, 0.2], [0, 0, 0], 0, 1.275, 1, 0, [0.15],[[0,1,0,1]],[0],0,0,"","",p1]
-
?(local P1): drop ["cl_basic", "", "Billboard", 4, 4, [-0, 0, 0.2], [0, 0, 0], 0, 1.275, 1, 0, [0.15],[[0,1,0,1]],[0],0,0,"","",p1]
This is all thats in drop.sqs for now, i wanted this particle to be only seen by the local player, although when i tested what you said, i could see the particle even though i wasn't called p1
?!(local P1): drop ["cl_basic", "", "Billboard", 4, 4, [-0, 0, 0.2], [0, 0, 0], 0, 1.275, 1, 0, [0.15],[[0,1,0,1]],[0],0,0,"","",p1]
When i tried this, i couldnt see any particles when i was called p1 or not called p1...
any ideas?
-
?(local P1): drop ["cl_basic", "", "Billboard", 4, 4, [-0, 0, 0.2], [0, 0, 0], 0, 1.275, 1, 0, [0.15],[[0,1,0,1]],[0],0,0,"","",p1]
This is all thats in drop.sqs for now, i wanted this particle to be only seen by the local player, although when i tested what you said, i could see the particle even though i wasn't called p1
?!(local P1): drop ["cl_basic", "", "Billboard", 4, 4, [-0, 0, 0.2], [0, 0, 0], 0, 1.275, 1, 0, [0.15],[[0,1,0,1]],[0],0,0,"","",p1]
When i tried this, i couldnt see any particles when i was called p1 or not called p1...
any ideas?
debug it
by placing the following lines in the script
Player sidechat "Script running"
~4
?(local P1): Player sidechat "P1 is local"
you should at least see the first line and depending whether or not you are P1, or P1 is in your group should determine whether or not you see the "P1 is local" sidechat
once you have proven that these commands work and you see them when you are supposed too, then you can start looking at your other code
by placing an additional sidechat line just before the Drop command, will inform you that your script got at least to that point
Perhaps P1 is something else
to find out run the following debugging line
Player sidechat format ["P1 is %1\n name = %2",typeof P1, name P1]