Zin
Expert
- Joined
- Aug 1, 2013
- Messages
- 1,738
- Solutions
- 2
- Reaction score
- 117
Hey i have not made a cleo in a long time but i want to make my own tazer mod for singleplayer.
I want it so when the player types TAZER they get a tazer and when they shoot someone they freeze for 8 seconds and get up with 50 HP.
Im getting "model.load unknown directive error"
code :
I want it so when the player types TAZER they get a tazer and when they shoot someone they freeze for 8 seconds and get up with 50 HP.
Im getting "model.load unknown directive error"
code :
Code:
{$CLEO .cs}
THREAD 'ZinTaze'
:ACT
model.load (#SILENCED)
wait 0
if and
0ADC: test_cheat "TAZER"
0AD2: 1@ = player $PLAYER_CHAR targeted_actor //IF and SET
else_jump @ACT
jump @TAZE
:TAZE
01B2: give_actor $PLAYER_ACTOR weapon 23 ammo 9999 // Load the weapon model before using this
04ED: load_animation "CRACK"
if and
04EE: animation "CRACK" loaded
0491: actor $PLAYER_ACTOR has_weapon 23
0AB0: key_pressed 1
else_jump @TAZE
0812: AS_actor 1@ perform_animation "crckdeth" IFP "CRACK" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 5000 // versionB
0223: set_actor 1@ health_to 50
jump @ACT