Disguise

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
20Twen
Lance Corporal
Posts: 10
Joined: Wed May 23, 2007 12:38 am

Disguise

Post by 20Twen »

A project I'm working on includes putting someone into disguise.(making them change skins) I can't seem to get it to change anything. I'm using a script like this....the light command is just so I know the trigger in the map activated, ignore it please....

disguise:
self waittill trigger
local.player=parm.other
if (local.player.isindisguise==1)
end

local.player.isindisguise=1
local.player light 0 1 0 50
local.player setcvar g_playermodel "german_waffenss_officer"
local.team = local.player.dmteam
while(local.player != NIL && isAlive local.player && local.player.dmteam == local.team)
waitframe
if(local.player != NIL)
local.player lightOff
local.player.isindisguise=0
end

If it's much harder then this...it's probably beyond my scripting skills.....

Any help or solution or pointing me in the right direction would be appreciated. If there is a mod like this one already I wouldn't mind either.

Thank You
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

local.player.model = "player/german_waffenss_officer.tik"
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

is this possible? please tell me if you get this working its great!!!
Post Reply