Hello., I'am newbie here..,
I want to ask you how to change CJ into another Actor after he killed someone (#SPECIAL01)
In this topic, after CJ kill Tenpenny, I want to change CJ into Tenpenny when I press S.
Here's my cleo script :
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$VERSION 3.1.0027}
{$CLEO .cs}
//-------------MAIN---------------
thread 'NOP'
:NOP_11
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @NOP_11
if
$ONMISSION == 0
else_jump @NOP_11
if
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 262.1767 2896.174 10.1698 radius 100.5 100.5 50.5
else_jump @NOP_11
Model.Load(#AK47)
023C: load_special_actor 'TENPEN' as 1 // models 290-299
:NOP_115
wait 0
if
Model.Available(#AK47)
Model.Available(#SPECIAL01)
else_jump @NOP_115
1@ = Actor.Create(Mission1, #SPECIAL01, 262.1767, 2896.174, 10.1698)
Actor.Angle(1@) = 347.2881
Actor.Health(1@) = 10550
0446: set_actor 1@ immune_to_headshots 0
04D8: set_actor 1@ drowns_in_water 0
0946: set_actor 1@ actions_uninterupted_by_weapon_fire 0
01B2: give_actor 1@ weapon 30 ammo 9999 // Load the weapon model before using this
0245: set_actor 1@ walk_style_to "SWAT"
03FE: set_actor 1@ money 3000
05E2: AS_actor 1@ kill_actor $PLAYER_ACTOR
$TENPEN_ACTOR = Actor.Health(1@)
$TENPEN_ACTOR /= 40
03C4: set_status_text $TENPEN_ACTOR type 1 GXT 'NA' // global_variable
Model.Destroy(#SPECIAL01)
:NOP_279
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @NOP_368
if
not Actor.Dead(1@)
else_jump @NOP_385
if
00F2: actor $PLAYER_ACTOR near_actor 1@ radius 200.0 200.0 0
$TENPEN_ACTOR = Actor.Health(1@)
$TENPEN_ACTOR /= 25
else_jump @NOP_368
jump @NOP_279
:NOP_368
Actor.RemoveReferences(1@)
0151: remove_status_text $TENPEN_ACTOR
jump @NOP_11
:NOP_385
Actor.RemoveReferences(1@)
0151: remove_status_text $TENPEN_ACTOR
end_thread
Pleasse help me..,