OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Profe on 12 Feb 2005, 06:09:53

Title: Could I? How?
Post by: Profe on 12 Feb 2005, 06:09:53
Is it possible to use the strokefist command through waypoints or init fields? If so, how should it look? I tried unitname str_action_strokefist unitname and others and I just get unknown operator errors.

I just want a unit to move the the waypoint and punch someone :/
Title: Re:Could I? How?
Post by: Planck on 12 Feb 2005, 06:19:16
Try this:

unitname action ["strokefist"]


Planck
Title: Re:Could I? How?
Post by: macguba on 12 Feb 2005, 12:17:19
In general you can put OFP code anywhere - init lines, waypoints, triggers, scripts.    

Code in init lines is executed right at the start of the mission.    It's no good for something you want to happen more than about second into the mission.
Title: Re:Could I? How?
Post by: Profe on 13 Feb 2005, 22:18:03
Ok that line worked, but it just plays the animation, he doesn't actually do it in the direction of the person.