Home   Help Search Login Register  

Author Topic: local side drop particle  (Read 1493 times)

0 Members and 1 Guest are viewing this topic.

Offline FiLL2d

  • Members
  • *
  • X.x
local side drop particle
« on: 10 Nov 2005, 16:20:21 »
hi how can i make

Code: [Select]
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"

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:local side drop particle
« Reply #1 on: 10 Nov 2005, 16:36:54 »
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]
« Last Edit: 10 Nov 2005, 16:38:46 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline FiLL2d

  • Members
  • *
  • X.x
Re:local side drop particle
« Reply #2 on: 10 Nov 2005, 17:28:29 »
Code: [Select]
?(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


Code: [Select]
?!(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?


Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:local side drop particle
« Reply #3 on: 11 Nov 2005, 17:18:27 »
Code: [Select]
?(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


Code: [Select]
?!(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]
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123