smoq2
Forklift operator (Resident)
 On forum: 09/08/2008
Messages: 2433
|
You cannot force an NPC to play any animation without implementing a whole new AI module, which is basically an action it will perform when certain conditions are met.
I think AI is the most difficult task when it comes to scripting, so I suggest downloading a simple mod that allows NPCs to pick up items, and see how it is done. I can't seem to find it anymore though.
As for getting a visual, google packet_utils21.script. It is my version of packet utils, adapted to CS (since the original didn't work for CS). Then use this
local data = packet_utils.21.get_object_data(npc:id())
local model = data.visual_name
The "model" var will contain the path to the NPCs mesh.
The page you need in the public telephone booth will always be missing.
The pendulum spins clockwise...
Current project:
S.T.A.L.K.E.R: The Faction War
https://www.gsc-game.com/main.php?t=community&s=forums&s_game_type=xr2&thm_id=22757&page=1&sec_id=22&sort=ASC&no_transl=#307619
|