Jump to content
Sign in to follow this  
cobra5000

Rescue missions

Recommended Posts

Do you know how i make the vehicle come to me after i shoot a green flare for example?

when i play OFP:R in contraband, i shot red flare and the boat came to me

Edited by Cobra5000

Share this post


Link to post
Share on other sites

I'm sorry, but nobody is going to write code for you.

Get something started and come back when you need some help.

Share this post


Link to post
Share on other sites

In other case, i read in wikiBis about eventhandler "fired"

Triggered when the unit fires a weapon.

This EH will not trigger if a unit fires out of a vehicle. For those cases an EH has to be attached to that particular vehicle.

Global.

Passed array: [unit, weapon, muzzle, mode, ammo]

b1.54.73642 : [unit, weapon, muzzle, mode, ammo, magazine, projectile]

unit: Object - Object the event handler is assigned to

weapon: String - Fired weapon

muzzle: String - Muzzle that was used

mode: String - Current mode of the fired weapon

ammo: String - Ammo used

magazine String - magazine name which was used

projectile object - Object of the projectile that was shot

so what i put in this eventHandler after i write "fired" like hand-granade

Share this post


Link to post
Share on other sites

Wont something like this:

((count ((markerpos "MARKERNAME") nearObjects ["INSERTFLARECLASSNAMEHERE",50])) > 0)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×