Or I guess you could do this:
Code:
public origin_set(id) {
new index, bodypart
get_user_aiming(id, index, bodypart)
if(index) {
New Float:origin[3]
origin[2] -= 50.0
entity_set_origin(index,origin)
}
else {
}
return PLUGIN_HANDLED
}
// Somewhere in that above function:
myfunc(index,origin)
public myfunc(parm,parm2) {
entity_set_origin(parm,parm2)
}
__________________