questions about circles in fallout2 mod

Discuss the creation and scripting of new fan-made games and mods for the Fallout series of games.
Post Reply
xisailuo
SDF!
SDF!
Posts: 6
Joined: Tue Aug 17, 2004 1:19 pm

questions about circles in fallout2 mod

Post by xisailuo »

I need some npc do some actions such as fall & stand constantly,but I can not accomplish it in my scripts:

#include "..\headers\define.h"

#include "..\headers\command.h"



procedure start;
procedure old_pickup_p_proc;
procedure node001;
procedure node002;




procedure start begin
call node001;

end

procedure old_pickup_p_proc begin
end

procedure node001 begin

reg_anim_clear(self_obj);
reg_anim_begin();
reg_anim_animate(self_obj,ANIM_fall_front_sf ,-1);
reg_anim_animate(self_obj,ANIM_prone_to_standing ,-1);
reg_anim_end();


call node002;

end


procedure node002 begin
call node001;
end





I can not find any help in CHINESE forum,please help me!
can you give me some examples?
I am CHINESE,,maybe my englishi is very poor
Temaperacl
Vault Veteran
Vault Veteran
Posts: 292
Joined: Fri Apr 19, 2002 11:51 am

Post by Temaperacl »

I'm not at home, so I don't have access to my compiler, but I don't know how the engine would like that loop - what you could do instead is put it in a timer.. Something like

Code: Select all

procedure start
 timer1
end 

procedure timer1
 [i]begin animation[/i]
 [i]do falldown animation[/i]
 [i]end animation[/i]
 [i]set timer to call timer2 after 1 second (Or whatever is appropriate)[/i]
end


procedure timer2
 [i]begin animation[/i]
 [i]do standup animation[/i]
 [i]end animation[/i]
 [i]set timer to call timer1 after 1 second (Or whatever is appropriate)[/i]
end
Like I said, I don't have access to the compiler right now, so I'm not sure of the actual function calls to use, and there might be a better way to do it, but hopefully that suggestion will be useful.
Post Reply