Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting Multiplayer
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
player using an action 'groupchats' a message.
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: player using an action 'groupchats' a message. (Read 2362 times)
0 Members and 1 Guest are viewing this topic.
filth
Members
Who's the bad man?
player using an action 'groupchats' a message.
«
on:
17 Apr 2008, 22:33:25 »
the situation is: i have an object which has been placed on a multiplayer map and i have added an action to that object. what i need is a script / line of code that tells the rest of the side that an individual has used that action.
specifically: the object is an ammo box. and the action is to move it. the chat line would be: "Player1 has moved the ammo crate."
thx in advance.
«
Last Edit: 20 Apr 2008, 18:30:45 by filth_merchant 101
»
Logged
Mandoble
Former Staff
Re: player using an action 'groupchats' a message.
«
Reply #1 on:
18 Apr 2008, 16:42:39 »
without scripting:
Add a trigger which condition is my_message > 0, check it continuously. in the action field put your chat message and also my_message = 0.
Somewhere inside your action code put:
Code:
[Select]
my_message = 1;publicVariable "my_message"
Logged
The Triple Blow
|
ArmA Videos
|
Mando Missile ArmA
filth
Members
Who's the bad man?
Re: player using an action 'groupchats' a message.
«
Reply #2 on:
20 Apr 2008, 18:30:34 »
thanks.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting Multiplayer
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
player using an action 'groupchats' a message.
Top of page