OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dwolf on 05 Sep 2002, 16:43:41

Title: keyboard arrows control
Post by: dwolf on 05 Sep 2002, 16:43:41
 Playing around I have made a script that lets a player move through an island at a very accelerated speed.It is activated by entering an object,been entering a machine gun,then ],commmand flash is what it is called.One can shoot while moving,or be killed.It moves through all objects and over water.Ok probably useless but amusing was just basically using it to learn some scripting.What I was wondering is this thing only works by entering the machine gun in the direction you wish to travel.Stops when you exit machine gun.Is it possible to alter this so as too be able to use maybe arrow keys to control the direction one travels?
Title: Re:keyboard arrows control
Post by: KTottE on 05 Sep 2002, 16:51:30
It would be easier for us all if you post a better description of your script, along with the script itself. We can't help you unless we know what you're doing ;D

Cheers, KTottE
Title: Re:keyboard arrows control
Post by: Gameer_77 on 05 Sep 2002, 18:55:31
But we can tell you right now, that you can't assign a script/command/trigger anything! To a key, be it cursor, or number.

You can use the action menu to call the script but thats it. (And radio)

 8) PEACE
Title: Re:keyboard arrows control
Post by: dwolf on 06 Sep 2002, 05:22:03


[attachment deleted by admin]
Title: Re:keyboard arrows control
Post by: dwolf on 06 Sep 2002, 10:07:18
 Pardon for asking the same question again,but part of this script lets you push a machine gun around any direction of choice using the mouse but not in flash mode.If one of you wizards would be nice enough to elaborate on the possibilities would appreciate it.
Title: Re:keyboard arrows control
Post by: Gameer_77 on 06 Sep 2002, 19:04:39
Could you not use the code flash setdir (getdir player)?

Is that what your asking?  :-\

 8)PEACE