Home   Help Search Login Register  

Author Topic: Type of vehicle  (Read 839 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Type of vehicle
« on: 19 Sep 2003, 20:46:35 »
Hi! Haven't made much OFP editing for a month or more now, just playin and foolin around with the editor not doing any serious stuff. My skills are kinda rusty, cause if I think about it, the last time I did something that required a brain was 3, 4 months ago(maybe that's why I haven't bombed u with Qs? ;D), so I'm quite a .

 ;D ::) :P

Anyway, I'm making this new official script(let us hope it doesn't suck as hard as Armsty's Suiciders ;D ), and I want to know what type of vehicle the script has affect on. An A10 will have another affect than the Su 25 or what it's name? Anyone know how to do this? Sorry for my rusty skills.

:beat: *Gets Shot* :beat:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Type of vehicle
« Reply #1 on: 19 Sep 2003, 20:54:01 »
use da typeof command :P

typeof unitname

returns da type of da unit ;)

LCD OUT

[edit] Ya nwb :P *shots armsty
« Last Edit: 19 Sep 2003, 20:54:22 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Type of vehicle
« Reply #2 on: 19 Sep 2003, 21:00:28 »
*Saves LCD's Bullet, so I can get shot in the end of the post instead*

Cheers! But what's the complete syntax, tried a couple of times. Didn't work. Would it be something like

typeof _plane = A10 : hint "worked!"

Or what(I feel like a mega n00b)?

Also, where can I get a vehicle list?

:beat: *Gets Shot* :beat:
« Last Edit: 19 Sep 2003, 21:01:13 by The real Armstrong »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Type of vehicle
« Reply #3 on: 19 Sep 2003, 21:04:47 »
U mega :P

u need 2 put it between "" :P

also - 2 make sure wat is da classname of da vehicle - use hint command :P

hint format ["%1",typeof _plane]

so u know wat is da type u need 2 check 4 ;)

*thinks : he saved ma bullet damn

*shot armsty w/ RPG

LCD OUT

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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Type of vehicle
« Reply #4 on: 19 Sep 2003, 21:08:45 »
*Gets kabloomed away*

Cheers! Will try that out!

:beat: *Gets shot* :beat:

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Type of vehicle
« Reply #5 on: 19 Sep 2003, 21:14:30 »
WTF now?

typeof _plane = "A10LGB" : hint "worked!"

Gets:

Unknown Operator

*Recovers from shock of the LCD kaboom. Oh no! Not another one!!! Bullet is flying towards me*

:beat: *Gets Shot* :beat:
« Last Edit: 19 Sep 2003, 21:15:20 by The real Armstrong »

Jo Jo Joni

  • Guest
Re:Type of vehicle
« Reply #6 on: 19 Sep 2003, 21:32:36 »
Instead of

typeof _plane = "A10LGB" : hint "worked!"

try

?(typeof _plane == "A10LGB") : hint "worked!"

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Type of vehicle
« Reply #7 on: 19 Sep 2003, 21:51:06 »
Instead of

typeof _plane = "A10LGB" : hint "worked!"

try

?(typeof _plane == "A10LGB") : hint "worked!"


Oh, of course - how stupid of me!

:beat: *Gets Shot* :beat: