OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 03 May 2005, 15:54:10
-
hey
im wondering how to be given an option menu when the player is less that 1m away from an object as turn on and when its on give it the same option but turn ofd wich also turns music on and music off
-
Hey 456820.
I've just had a thought. You could always define the music as a sound (ie: voices) and attach the this say "myMusic" command to the radio. Unsure of if it would work but I can't see why not unless empty objects can't talk ::)! Good luck!
ProudPotter2490 :afro:
-
Yes, that would work. Add the action to the radio, so it appears automatically in the player's action menu when he gets close enough.
-
what the line to detect if the player is less than 1m away from it
-
If you really do want it to be 1m then you need a trigger 2x2 player present.