OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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 :/
-
Try this:
unitname action ["strokefist"]
Planck
-
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.
-
Ok that line worked, but it just plays the animation, he doesn't actually do it in the direction of the person.