OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFPfreak on 10 Dec 2005, 23:57:33
-
I know it's possible to check for a specific unit somehow, so I want to make it with my detailed checking script that if the player scrolls trough the information of car1 they can see what type of unit that is.
-
Use this to check for the type:
typeof _unit=="WhateverVehicleYouAreCheckingFor"
-Pilot
-
try this:
hint format ["The vehicle is a %1",typeof _carname]
perhaps pilot misread? ;D
-
I don't think so...maybe :P
I was just giving him a method he could use to incorporate into his script. I wasn't sure if all OFPfreak wanted was a simple hint or something more in depth.
-Pilot
EDIT:
Hmph, the more I think about it the more I think you are right, Triggerhappy. >:( ;D I was thinking OFPfreak wanted to incorporate this into some kind of dialog, but even in that case your method is right.
*grumble*
-
hehe :P
-
Ok thanks for that. No it's not a dialog. It's a HintC message (yes i know its cadet only).