OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mr.Cool on 16 Aug 2004, 20:01:34
-
This is the script I am haveing a prob with...
?!(_West == West _Police): _Civilan GlobalChat "Police..police...do you hear me...I NEED HELP!!!"; Exit
I just need to know what to put where it says _Police...this is a script for my RPG that I have and I want a script so you can call the cops.
-
You need to know what that _West variable stands for.
Can you post the whole script?
-
that is the whole script...I am new to this.
-
If you are new to scripts then, before going any futher, go to the Editors Depot and read snYpir's A Friendly Intro to Code Snippets and also Johan Gustafsson's Scripting Tutorial.
-
what exactly r u checking in the condition line ?
?!(_West == West _Police):
cuz the _var r private 4 ur script nd if that the whole script ur checking 4 nothing :P
LCD OUT
-
I am trying to make it so West guy on action menu presses the button and has
"Police..police...do you hear me...I NEED HELP!!!"
come up on globlechat.
-
Put this in the init-field of the unit:
this addAction ["Shout for help", "shout.sqs"]
then create a file named shout.sqs in your mission folder and put this in it:
_this select 1 GlobalChat "Police..police..I need help tying my shoelaces..anyone?"
-
thank you...its all that I wanted.
-
then solve the thread ;)
the solve buttun shud b around there ^ somwere ;)
LCD OUT