Scripts / [SOLVED] StopAnimation(e) like a Statue

Author
Message
Tiger1980
User Offline
Joined: 21st Mar 2021
Location:
Posted: 20th Apr 2021 18:19
As the title said StopAnimation(e) like a Statue.
It works great but i can hurt the statue anyway. Is it possible to prevent that until he lives again with the script ?

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
5
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Apr 2021 18:46
SetEntityHealth( e, 100000 )
Been there, done that, got all the T-Shirts!
PM
Tiger1980
User Offline
Joined: 21st Mar 2021
Location:
Posted: 20th Apr 2021 19:24 Edited at: 20th Apr 2021 19:28
Yes i know but if is set this, he stil have 1000 health:

if ai_classiccharacter_anubis_stopanim_trigger ==0 then
SetEntityHealth( e, 100000 )
StopAnimation(e)
else
SetEntityHealth( e, 100 )

is there a command to set the character to static on or of ?
PM
smallg
Community Leader
16
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Apr 2021 20:00
This post has been marked by the post author as the answer.
no, static objects can't be changed in the game... they are static...
personally i would make a non-character version of the model for the statue and use the Spawn system to swap to the character version when needed
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2022-01-25 05:56:17
Your offset time is: 2022-01-25 05:56:17