Home   Help Search Login Register  

Author Topic: Script prob  (Read 556 times)

0 Members and 1 Guest are viewing this topic.

Mr.Cool

  • Guest
Script prob
« on: 16 Aug 2004, 20:01:34 »
This is the script I am haveing a prob with...
Quote
?!(_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.

Offline Blanco

  • Former Staff
  • ****
Re:Script prob
« Reply #1 on: 16 Aug 2004, 20:14:58 »
You need to know what that _West variable stands for.

Can you post the whole script?

Search or search or search before you ask.

Mr.Cool

  • Guest
Re:Script prob
« Reply #2 on: 16 Aug 2004, 20:24:18 »
that is the whole script...I am new to this.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Script prob
« Reply #3 on: 16 Aug 2004, 20:26:06 »
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.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Script prob
« Reply #4 on: 16 Aug 2004, 22:36:40 »
what exactly r u checking in the condition line ?

Quote
?!(_West == West _Police):

cuz the _var r private 4 ur script nd if that the whole script ur checking 4 nothing :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Mr.Cool

  • Guest
Re:Script prob
« Reply #5 on: 17 Aug 2004, 03:51:59 »
I am trying to make it so West guy on action menu presses the button and has
Quote
"Police..police...do you hear me...I NEED HELP!!!"

come up on globlechat.

Offline Mud_Spike

  • Contributing Member
  • **
Re:Script prob
« Reply #6 on: 17 Aug 2004, 08:06:12 »
Put this in the init-field of the unit:
Code: [Select]
this addAction ["Shout for help", "shout.sqs"]
then create a file named shout.sqs in your mission folder and put this in it:
Code: [Select]
_this select 1 GlobalChat "Police..police..I need help tying my shoelaces..anyone?"

Mr.Cool

  • Guest
Re:Script prob
« Reply #7 on: 17 Aug 2004, 15:50:17 »
thank you...its all that I wanted.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Script prob
« Reply #8 on: 17 Aug 2004, 15:52:06 »
then solve the thread ;)

the solve buttun shud b around there ^ somwere ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta