Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.pak/resource/set/interaction_entity/human.inc
- {on spawn
- ;filename;nickname;bonename
- {add_view "skeleton" "skel" "basis"}{view hide "skel"}{view stop "skel"}
- ;have to hide and stop the view, otherwise it will stay on the unit.
- ;you can replace "skeleton" and put a humanskin like rus-smg and it will be rus-smg, or worker and he will be the worker skin
- ;this must be at the beginning of "{on spawn" with no delays to prevent crashing.
- }
- {on "die"
- {delay 5 ;Bam
- {if dead
- (define "ts"
- {delay %1
- {view show "skel"}{view start "skel"}{damage_report "body" "<s(0.1)c(ffffff)> showing skeleton"}
- {delay 5 {bone hide "%0"}{damage_report "body" "<s(0.1)c(ffffff)> hiding %0"}}
- }) ;%0 ;%1 (%2 if I were to add anything after 0(%1))
- ("ts" args skin 0) ;we are going to use a define to make things more simple and lessen the lines of code
- ;("ts" args otherbone 0) you copy and paste to hide other bone names
- }}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement